/**
 * @ author: 汪孟苹
 */
define(["jquery","template",
	"scprit/oms/view/template/toast.tpl.js"],function($,template,tpl){
	var toastUi = {};

	var drawToastConfirm = function(data){
		return template("tpl_toast_confirm",data);
	}
	toastUi.confirmInit = function(options){
		$("body").append(tpl.confirm());
		var html = drawToastConfirm(options);
		$("#tpl_toast_confirm").remove();	// 将模板移除掉（模板id）
		$("body").append(html);
	}

	return toastUi;
});